HaloPesa All API.
This analyses the pdf and responds with the Tausi's 1d analysis, 2d analysis, 3d analysis and Affordability score both in one call. The response is in a json format.
Header Requirements
- Authorization --required
Body Params
- file --required
- fullname --required
curl example request
curl -X 'POST' 'https://api.manka.tz/api/v1/analysis/all'
-F fullname=Hussein \
-F 'file=@HaloPesa_4435535_Statement.pdf' \
-H 'Authorization: Bearer XXXXXXXXXXX' \'
Response Sample
- Status OK Response
200 OK
{
"profile": {
"name": "PHILLEMON JASSONY",
"account": "255613029007",
"contacts": "255613029007",
"company": "Halotel",
"start_date": "2023-12-17T19:50:19",
"end_date": "2024-03-11T00:01:54",
"no_of_transactions": 137,
"in_types": [
"bank_to_wallet",
"agent_deposit",
"p2p_received",
"other"
],
"out_types": [
"luku",
"p2p_sent",
"wallet_to_bank",
"bundles",
"agent_withdrawal",
"bill_payment",
"merchant_payment",
"other"
],
"loan_services": [],
"pars_3d": {
"agent_activity": {
"debit": [
"agent_withdrawal"
],
"credit": [
"agent_deposit"
]
},
"peer_to_peer_activity": {
"debit": [
"p2p_sent"
],
"credit": [
"p2p_received"
]
},
"bank_activity": {
"debit": [
"wallet_to_bank"
],
"credit": [
"bank_to_wallet"
]
},
"loan_activity": {
"debit": []
},
"bills_activity": {
"debit": [
"bill_payment",
"luku",
"gepg",
"merchant_payment"
]
},
"other": {
"debit": [
"other"
],
"credit": [
"other"
]
}
},
"channels": {}
},
"1d_analysis": {
"initial_info": {
"account_number": "255613029007",
"first_date": "2023-12-17 19:50:19",
"last_date": "2024-03-11 00:01:54",
"total_days": 85,
"total_active_days": 40
},
"customer_profile": {
"wallet_balance": 3610.0,
"total_turnover": 6251092.0,
"total_transactions": 137
},
"cash_flow_summary": {
"total_turnover": 6251092.0,
"total_cashin": 3183756.0,
"total_cashout": 3067336.0,
"cashin_to_turnover_percentage": 50.93,
"cashin_transactions": 39,
"cashin_to_total_trans_percentage": 28.47,
"cashout_to_turnover_percentage": 49.07,
"cashout_transactions": 98,
"cashout_to_total_trans_percentage": 71.53
},
"bank_to_wallet": {
"total_bank_to_wallet_amount": 504000.0,
"maximum_bank_to_wallet_amount": 120000.0,
"no_of_bank_to_wallet_transactions": 13,
"average_bank_to_wallet_amount": 38769.23,
"last_day_paid_bank_to_wallet": "2024-01-26 23:09:00",
"last_bank_to_wallet_amount": 14000.0
},
"agent_deposit": {
"total_agent_deposit_amount": 110000.0,
"maximum_agent_deposit_amount": 110000.0,
"no_of_agent_deposit_transactions": 1,
"average_agent_deposit_amount": 110000.0,
"last_day_paid_agent_deposit": "2024-01-17 12:28:54",
"last_agent_deposit_amount": 110000.0
},
"p2p_received": {
"total_p2p_received_amount": 2561006.0,
"maximum_p2p_received_amount": 800000.0,
"no_of_p2p_received_transactions": 24,
"average_p2p_received_amount": 106708.58,
"last_day_paid_p2p_received": "2024-03-09 13:33:04",
"last_p2p_received_amount": 500000.0
},
"other": {
"total_other_amount": 5000.0,
"maximum_other_amount": 5000.0,
"no_of_other_transactions": 1,
"average_other_amount": 5000.0,
"last_day_paid_other": "2024-01-08 20:13:29",
"last_other_amount": 5000.0
},
"luku": {
"total_luku_amount": 34500.0,
"maximum_luku_amount": 20000.0,
"no_of_luku_transactions": 4,
"average_luku_amount": 8625.0,
"last_day_paid_luku": "2024-01-24 12:38:33",
"last_luku_amount": 6500.0
},
"p2p_sent": {
"total_p2p_sent_amount": 1038168.0,
"maximum_p2p_sent_amount": 104350.0,
"no_of_p2p_sent_transactions": 48,
"average_p2p_sent_amount": 21628.5,
"last_day_paid_p2p_sent": "2024-03-11 00:01:54",
"last_p2p_sent_amount": 101350.0
},
"wallet_to_bank": {
"total_wallet_to_bank_amount": 982000.0,
"maximum_wallet_to_bank_amount": 444000.0,
"no_of_wallet_to_bank_transactions": 5,
"average_wallet_to_bank_amount": 196400.0,
"last_day_paid_wallet_to_bank": "2024-03-10 09:08:05",
"last_wallet_to_bank_amount": 384000.0
},
"bundles": {
"total_bundles_amount": 134500.0,
"maximum_bundles_amount": 10000.0,
"no_of_bundles_transactions": 25,
"average_bundles_amount": 5380.0,
"last_day_paid_bundles": "2024-03-10 00:12:17",
"last_bundles_amount": 5000.0
},
"agent_withdrawal": {
"total_agent_withdrawal_amount": 635918.0,
"maximum_agent_withdrawal_amount": 336338.0,
"no_of_agent_withdrawal_transactions": 11,
"average_agent_withdrawal_amount": 57810.73,
"last_day_paid_agent_withdrawal": "2024-01-23 15:08:05",
"last_agent_withdrawal_amount": 34151.0
},
"bill_payment": {
"total_bill_payment_amount": 0.0,
"maximum_bill_payment_amount": 0.0,
"no_of_bill_payment_transactions": 0,
"average_bill_payment_amount": 0.0,
"last_day_paid_bill_payment": "N/A",
"last_bill_payment_amount": 0.0
},
"merchant_payment": {
"total_merchant_payment_amount": 246000.0,
"maximum_merchant_payment_amount": 66000.0,
"no_of_merchant_payment_transactions": 5,
"average_merchant_payment_amount": 49200.0,
"last_day_paid_merchant_payment": "2024-01-21 21:00:00",
"last_merchant_payment_amount": 66000.0
},
"transaction_channels": {},
"statement_check": {
"isvalid": true
}
},
"2d_analysis": {
"total_cash_inflow": 3183756.0,
"cash_inflow": {
"bank_to_wallet": {
"total_amout": 504000.0,
"percentage_of_total": 15.83
},
"agent_deposit": {
"total_amout": 110000.0,
"percentage_of_total": 3.46
},
"p2p_received": {
"total_amout": 2561006.0,
"percentage_of_total": 80.44
},
"other_cashin_flow": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"loan_disbursements": {
"total_amout": 0,
"percentage_of_total": 0.0
}
},
"total_cash_outflow": 3067336.0,
"cash_outflow": {
"luku": {
"total_amout": 34500.0,
"percentage_of_total": 1.12
},
"p2p_sent": {
"total_amout": 1029418.0,
"percentage_of_total": 33.56
},
"wallet_to_bank": {
"total_amout": 982000.0,
"percentage_of_total": 32.01
},
"bundles": {
"total_amout": 134500.0,
"percentage_of_total": 4.38
},
"agent_withdrawal": {
"total_amout": 635918.0,
"percentage_of_total": 20.73
},
"bill_payment": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"merchant_payment": {
"total_amout": 246000.0,
"percentage_of_total": 8.02
},
"other_cashout_flow": {
"total_amout": 5000.0,
"percentage_of_total": 0.16
},
"loan_repayments": {
"total_amout": 0,
"percentage_of_total": 0.0
}
}
},
"3d_analysis": {
"analysis_period": {
"start_date": "December_2023",
"end_date": "March_2024"
},
"cash_flow_analysis": {
"cash_inflow": [
{
"month": "December_2023",
"amount": 20000.0,
"percentage": 0.63
},
{
"month": "January_2024",
"amount": 2593095.0,
"percentage": 81.45
},
{
"month": "February_2024",
"amount": 40661.0,
"percentage": 1.28
},
{
"month": "March_2024",
"amount": 530000.0,
"percentage": 16.65
}
],
"cash_outflow": [
{
"month": "December_2023",
"amount": 23500.0,
"percentage": 0.77
},
{
"month": "January_2024",
"amount": 2476746.0,
"percentage": 80.75
},
{
"month": "February_2024",
"amount": 40000.0,
"percentage": 1.3
},
{
"month": "March_2024",
"amount": 527090.0,
"percentage": 17.18
}
]
},
"agent_activity_analysis": {
"agent_withdrawal": [
{
"month": "December_2023",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "January_2024",
"amount": 635918.0,
"percentage": 100.0
},
{
"month": "February_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "March_2024",
"amount": 0.0,
"percentage": 0.0
}
],
"agent_deposit": [
{
"month": "December_2023",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "January_2024",
"amount": 110000.0,
"percentage": 100.0
},
{
"month": "February_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "March_2024",
"amount": 0.0,
"percentage": 0.0
}
]
},
"peer_to_peer_activity_analysis": {
"p2p_sent": [
{
"month": "December_2023",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "January_2024",
"amount": 916328.0,
"percentage": 89.01
},
{
"month": "February_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "March_2024",
"amount": 113090.0,
"percentage": 10.99
}
],
"p2p_received": [
{
"month": "December_2023",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "January_2024",
"amount": 1990345.0,
"percentage": 77.72
},
{
"month": "February_2024",
"amount": 40661.0,
"percentage": 1.59
},
{
"month": "March_2024",
"amount": 530000.0,
"percentage": 20.69
}
]
},
"bank_activity_analysis": {
"wallet_to_bank": [
{
"month": "December_2023",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "January_2024",
"amount": 598000.0,
"percentage": 60.9
},
{
"month": "February_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "March_2024",
"amount": 384000.0,
"percentage": 39.1
}
],
"bank_to_wallet": [
{
"month": "December_2023",
"amount": 20000.0,
"percentage": 3.97
},
{
"month": "January_2024",
"amount": 484000.0,
"percentage": 96.03
},
{
"month": "February_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "March_2024",
"amount": 0.0,
"percentage": 0.0
}
]
},
"loan_activity_analysis": {},
"bills_activity_analysis": {
"bill_payment": [
{
"month": "December_2023",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "January_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "February_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "March_2024",
"amount": 0.0,
"percentage": 0.0
}
],
"luku": [
{
"month": "December_2023",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "January_2024",
"amount": 34500.0,
"percentage": 100.0
},
{
"month": "February_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "March_2024",
"amount": 0.0,
"percentage": 0.0
}
],
"gepg": [
{
"month": "December_2023",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "January_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "February_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "March_2024",
"amount": 0.0,
"percentage": 0.0
}
],
"merchant_payment": [
{
"month": "December_2023",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "January_2024",
"amount": 246000.0,
"percentage": 100.0
},
{
"month": "February_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "March_2024",
"amount": 0.0,
"percentage": 0.0
}
]
},
"other_analysis": {
"other": [
{
"month": "December_2023",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "January_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "February_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "March_2024",
"amount": 0.0,
"percentage": 0.0
}
]
}
},
"affordability_scores": {
"rank": 2,
"high": 195850.0,
"moderate": 146888.0,
"low": 97925.0
}
}